getTranslatorInfo()

Description Provides information about the translator and the files it can act upon.
Arguments None.
Returns An array of strings. The elements of the array must appear in the following order:
translatorClass uniquely identifies the translator. This string must begin with a letter and can contain only alphanumeric characters, hyphens (-), and underscores (_).
title describes the translator in no more than 40 characters. This string appears in the Modify > Translate menu as well as in the Translation preferences.
nExtensions specifies the number of file extensions to follow. If nExtensions is 0, the translator can run on any file.
extension specifies a file extension (for example, "htm" or "SHTML") that this translator can work with. This string is case insensitive and should not contain a leading period. The array should contain the same number of extension elements as are specified in nExtensions.
nRegExps specifies the number of regular expressions that will follow. If nRegExps is 0, runDefault is the next element in the array.
regExps specifies a regular expression to check for. The array should contain the same number of regExps elements as are specified in nRegExps, and at least one of the regExps must match a piece of the document's HTML source before the translator can act on a file.
runDefault specifies the default preference for running this translator. Possible values are "allFiles", "noFiles", "byExtension", and "byExpression". If you set runDefault to "byExtension" but do not specify any extensions (see extension, above), the effect is the same as setting "allFiles". If you set runDefault to "byExpression" but do not specify any expressions (see regExps, above), the effect is the same as setting "noFiles". Whatever value you set for runDefault can be overridden by the user in the Preferences dialog box.
Example The following instance of getTranslatorInfo() gives information about a translator for server-side includes:
function getTranslatorInfo(){
  var transArray = new Array(11);

  transArray[0] = "SSI";
  transArray[1] = "Server-Side Includes";
  transArray[2] = "4";
  transArray[3] = "htm";
  transArray[4] = "stm";
  transArray[5] = "html";
  transArray[6] = "shtml";
  transArray[7] = "2";
  transArray[8] = "<!--#include file";
  transArray[9] = "<!--#include virtual";
  transArray[10] = "byExtension";

  return transArray;
}